<?php
/**
 * User: jewens
 */
class Base extends CI_Controller
{
    public function index()
    {
        $this->load->model('article/Model_article', 'a');


        $company_news   = $this->a->lists(OFFSET, 3, array('cid' => 10), true, 'aid desc');
        $industry_news  = $this->a->lists(OFFSET, 3, array('cid' => 11), true, 'aid desc');
        $company_active = $this->a->lists(OFFSET, 2, array('cid' => 12), true, 'aid desc');


        $social_concern   = $this->a->lists(OFFSET, 6, array('cid' => 14), true, 'aid desc');
        $celebrity_anchor = $this->a->lists(OFFSET, LIMIT, array('cid' => 15), true, 'aid desc');

        $data = array
        (
            'company_news'     => $company_news,
            'industry_news'    => $industry_news,
            'company_active'   => $company_active,
            'social_concern'   => $social_concern,
            'celebrity_anchor' => $celebrity_anchor,
        );

        $this->load->view('www/base/index', $data);
    }
}